package com.example.intelligentattendancesystem;

import com.example.intelligentattendancesystem.pojo.User;
import com.example.intelligentattendancesystem.service.IndexService;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

/**
 * @author
 * @version 1.0
 * @className index
 * @since 1.0
 */
@RunWith(SpringRunner.class)
@SpringBootTest
public class index {
    @Autowired
    IndexService indexService;
    @Test
    public void TestRegister(){
        User user = new User(null, "tom1", "url//", 1231, "123", "user");
        boolean register = indexService.registerService(user);
        System.out.println(register);
    }
    @Test

    public void TestLogin(){

    }
}
